package com.yayun.merchant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yayun.common.annotation.Excel;
import com.yayun.common.core.domain.BaseEntity;

/**
 * 书籍信息对象 pms_product
 * 
 * @author yayun
 */
public class PmsProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 书籍id */
    private Long id;

    /** ISBN编号 */
    @Excel(name = "ISBN编号")
    private String outProductId;

    /** 书名 */
    @Excel(name = "书名")
    private String name;

    /** 副标题 */
    @Excel(name = "副标题")
    private String subtitle;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String pic;

    /** 画册图片，限制为5张，以逗号分割 */
    private String albumPics;

    /** 上架状态：0->下架；1->上架 */
    @Excel(name = "上架状态", readConverterExp = "0=下架,1=上架")
    private Integer publishStatus;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 定价 */
    @Excel(name = "定价")
    private BigDecimal price;

    /** 促销价格 */
    @Excel(name = "促销价格")
    private BigDecimal promotionPrice;

    /** 库存 */
    @Excel(name = "库存")
    private Integer stock;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 销量 */
    @Excel(name = "销量")
    private Integer saleCount;

    /** 出版社id */
    @Excel(name = "出版社id")
    private Long brandId;

    /** 出版社名称 */
    @Excel(name = "出版社名称")
    private String brandName;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 书籍简介 */
    @Excel(name = "书籍简介")
    private String description;

    /** 详细页面内容 */
    private String detailHtml;

    /** 移动端网页详情 */
    private String detailMobileHtml;

    /** 关键字 */
    @Excel(name = "关键字")
    private String keywords;

    /** 备注 */
    private String note;

    /** 出版日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 页数 */
    @Excel(name = "页数")
    private Integer pageNum;

    /** 开本 */
    @Excel(name = "开本")
    private String paperSize;

    /** 纸张 */
    @Excel(name = "纸张")
    private String paperType;

    /** 包装 */
    @Excel(name = "包装")
    private String packaging;

    /** 是否为新书：0->否；1->是 */
    @Excel(name = "是否为新书", readConverterExp = "0=否,1=是")
    private Integer isNew;

    /** 是否推荐：0->否；1->是 */
    @Excel(name = "是否推荐", readConverterExp = "0=否,1=是")
    private Integer isRecommend;

    // getter和setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOutProductId() {
        return outProductId;
    }

    public void setOutProductId(String outProductId) {
        this.outProductId = outProductId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getAlbumPics() {
        return albumPics;
    }

    public void setAlbumPics(String albumPics) {
        this.albumPics = albumPics;
    }

    public Integer getPublishStatus() {
        return publishStatus;
    }

    public void setPublishStatus(Integer publishStatus) {
        this.publishStatus = publishStatus;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(BigDecimal promotionPrice) {
        this.promotionPrice = promotionPrice;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getSaleCount() {
        return saleCount;
    }

    public void setSaleCount(Integer saleCount) {
        this.saleCount = saleCount;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDetailHtml() {
        return detailHtml;
    }

    public void setDetailHtml(String detailHtml) {
        this.detailHtml = detailHtml;
    }

    public String getDetailMobileHtml() {
        return detailMobileHtml;
    }

    public void setDetailMobileHtml(String detailMobileHtml) {
        this.detailMobileHtml = detailMobileHtml;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public String getPaperSize() {
        return paperSize;
    }

    public void setPaperSize(String paperSize) {
        this.paperSize = paperSize;
    }

    public String getPaperType() {
        return paperType;
    }

    public void setPaperType(String paperType) {
        this.paperType = paperType;
    }

    public String getPackaging() {
        return packaging;
    }

    public void setPackaging(String packaging) {
        this.packaging = packaging;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }
}
